package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author du
 * date 2018/7/29 下午12:17
 */
public class QuestionSubjectEntity implements Parcelable {
    /**
     * problem_title : <p>小丽想不摸到蓝色珠子，请问她应该摸第________个盒子？</p><p><img src="http://7xu137.com1.z0.glb.clouddn.com/ueditor_20161213_584f624e3905b.png" title="blob.png" alt="blob.png"/></p>
     * problem_type : 3
     * problem_answer : [""]
     * problem_correct_answer : ["3"]
     */

    private String problem_title;
    private String problem_type;
    private List<String> problem_answer;
    private List<String> problem_correct_answer;

    public String getProblem_title() { return problem_title;}

    public void setProblem_title(String problem_title) { this.problem_title = problem_title;}

    public String getProblem_type() { return problem_type;}

    public void setProblem_type(String problem_type) { this.problem_type = problem_type;}

    public List<String> getProblem_answer() { return problem_answer;}

    public void setProblem_answer(List<String> problem_answer) { this.problem_answer = problem_answer;}

    public List<String> getProblem_correct_answer() { return problem_correct_answer;}

    public void setProblem_correct_answer(List<String> problem_correct_answer) { this.problem_correct_answer = problem_correct_answer;}


    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.problem_title);
        dest.writeString(this.problem_type);
        dest.writeStringList(this.problem_answer);
        dest.writeStringList(this.problem_correct_answer);
    }

    public QuestionSubjectEntity() {}

    protected QuestionSubjectEntity(Parcel in) {
        this.problem_title = in.readString();
        this.problem_type = in.readString();
        this.problem_answer = in.createStringArrayList();
        this.problem_correct_answer = in.createStringArrayList();
    }

    public static final Creator<QuestionSubjectEntity> CREATOR = new Creator<QuestionSubjectEntity>() {
        @Override
        public QuestionSubjectEntity createFromParcel(Parcel source) {return new QuestionSubjectEntity(source);}

        @Override
        public QuestionSubjectEntity[] newArray(int size) {return new QuestionSubjectEntity[size];}
    };
}
